package cn.net.sinodata.system.domain.bo;

import cn.net.sinodata.system.domain.BmEmailInfo;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 邮件信息业务对象 bm_email_info
 *
 * @author chenbaijun
 * @date 2025-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BmEmailInfo.class, reverseConvertGenerate = false)
public class BmEmailInfoBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 交易流水号
     */
    @NotBlank(message = "交易流水号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transNo;

    /**
     * 发送邮箱
     */
    private String sendEmail;

    /**
     * 邮件内容
     */
    private String emailContent;

    /**
     * 邮件标题
     */
    private String emailTitle;

    /**
     * 抄送人员
     */
    private String ccRecipients;

    /**
     * 发送时间
     */
    private Date sendTime;

    /**
     * 接收人员
     */
    private String recipients;

    /**
     * 邮件状态
     */
    private String status;

}
